package com.evil.account.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.evil.account.api.RemoteTemplateService;
import com.evil.account.mapper.TemplateMapper;
import com.evil.account.pojo.entity.Template;
import com.evil.account.service.TemplateService;
import com.evil.common.account.dto.template.DownloadUserTemplateReqDTO;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 模板表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Slf4j
@RestController
@AllArgsConstructor
public class TemplateServiceImpl extends ServiceImpl<TemplateMapper, Template> implements TemplateService, RemoteTemplateService {

    @Override
    public int batchInsert(List<Template> list) {
        return baseMapper.batchInsert(list);
    }

    @Override
    public String downloadUserTemplate(DownloadUserTemplateReqDTO downloadUserTemplateReqDTO) {
        return null;
    }

    @Override
    public Template getTemplate(String code) {
        return null;
    }
}

